From: Debian Science Maintainers Date: Sun, 28 Sep 2025 17:50:00 +0000 (+0200) Subject: remove-unaligned-test X-Git-Tag: archive/raspbian/2021.8.0-2+rpi1+deb12u1^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=97512cc984f2a48fe0a0a6ef86d44d6d81210cc6;p=onetbb.git remove-unaligned-test iDescription: Remove unaligned mem-accesses from test_malloc_pools.cpp =================================================================== Gbp-Pq: Name remove-unaligned-test.patch --- diff --git a/test/tbbmalloc/test_malloc_pools.cpp b/test/tbbmalloc/test_malloc_pools.cpp index f73c28e..8f83d76 100644 --- a/test/tbbmalloc/test_malloc_pools.cpp +++ b/test/tbbmalloc/test_malloc_pools.cpp @@ -66,11 +66,11 @@ static std::atomic liveRegions; static void *getMallocMem(intptr_t /*pool_id*/, size_t &bytes) { - void *rawPtr = malloc(bytes+sizeof(MallocPoolHeader)+1); + void *rawPtr = malloc(bytes+sizeof(MallocPoolHeader)); if (!rawPtr) return nullptr; // +1 to check working with unaligned space - void *ret = (void *)((uintptr_t)rawPtr+sizeof(MallocPoolHeader)+1); + void *ret = (void *)((uintptr_t)rawPtr+sizeof(MallocPoolHeader)); MallocPoolHeader *hdr = (MallocPoolHeader*)ret-1; hdr->rawPtr = rawPtr;